package com.ss.android.article.base.feature.detail.presenter;

import com.ss.android.article.base.feature.detail.model.ArticleDetail;
import com.ss.android.article.base.feature.model.Article;
import com.ss.android.common.load.AsyncLoader.LoaderProxy;
import com.ss.android.model.AbsArticle;

final class ArticleDetailDBLoader implements LoaderProxy {
    private final DetailLoader mDetailLoader;

    ArticleDetailDBLoader(DetailLoader detailLoader) {
        this.mDetailLoader = detailLoader;

    }

    public final Object doInBackground(Object key, Object param, Object extra) {
        boolean v0 = param == null;
        return mDetailLoader.queryArticleDetail(((AbsArticle) extra), v0);
    }

    public final void onLoaded(Object key, Object param, Object extra, Object result) {
        this.mDetailLoader.onLoaded(((Article) param), ((AbsArticle) extra), ((ArticleDetail) result));
    }
}

